<?php
// userMessageDTO
foreach($this->userMessages as $userMessage) {
?>  

<li>
<div class="msgImg">
	<img src="<?php echo $this->userThumbnail($userMessage->creator);?>" />
	<?php 
	$user = $userMessage->creator;
$uc = User::checkUserAuthProvider($user, AuthProvider::FACEBOOK);
if (!empty($uc)) {
?><a target="_blank" id="fbIcon" title="<?php echo $user->name;?> has connected with Facebook, isn't he/she more trustworthy? Click to check out!" href="http://www.facebook.com/profile.php?id=<?php echo $uc->auth_uid;?>">
fb</a>
<?php }?>
</div>
<div class="msgName">
		<a href="<?php echo $this->url(array('controller'=>'user', "action"=>"profile", "uid"=>$userMessage->creator->id), "default", true)?>"><?php echo $userMessage->creator->name;?></a>
		<span><?php echo $userMessage->created;?></span>
</div>
<div class="msgDesc">
	<p><?php echo $userMessage->getMessageText();?></p>
</div>
</li>
<div class="dotline"></div>

<?php }
?>